//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package alarm_dao

import "go.mongodb.org/mongo-driver/mongo"

var ConfigDao *_ConfigDao
var AlarmDao *_AlarmDao

func InitDao(mgoDb *mongo.Database) (err error) {
	ConfigDao, err = newConfigDao(mgoDb)
	if err != nil {
		return
	}

	AlarmDao, err = newAlarmDao(mgoDb)
	if err != nil {
		return
	}

	return
}
